package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ScenicSpotsMapper;
import com.ruoyi.system.domain.ScenicSpots;
import com.ruoyi.system.service.IScenicSpotsService;

/**
 * 景区模块Service业务层处理
 * 
 * @author lsj
 * @date 2024-12-21
 */
@Service
public class ScenicSpotsServiceImpl implements IScenicSpotsService 
{
    @Autowired
    private ScenicSpotsMapper scenicSpotsMapper;

    /**
     * 查询景区模块
     * 
     * @param scenicSpotid 景区模块主键
     * @return 景区模块
     */
    @Override
    public ScenicSpots selectScenicSpotsByScenicSpotid(Long scenicSpotid)
    {
        return scenicSpotsMapper.selectScenicSpotsByScenicSpotid(scenicSpotid);
    }

    /**
     * 查询景区模块列表
     * 
     * @param scenicSpots 景区模块
     * @return 景区模块
     */
    @Override
    public List<ScenicSpots> selectScenicSpotsList(ScenicSpots scenicSpots)
    {
        return scenicSpotsMapper.selectScenicSpotsList(scenicSpots);
    }

    /**
     * 新增景区模块
     * 
     * @param scenicSpots 景区模块
     * @return 结果
     */
    @Override
    public int insertScenicSpots(ScenicSpots scenicSpots)
    {
        return scenicSpotsMapper.insertScenicSpots(scenicSpots);
    }

    /**
     * 修改景区模块
     * 
     * @param scenicSpots 景区模块
     * @return 结果
     */
    @Override
    public int updateScenicSpots(ScenicSpots scenicSpots)
    {
        return scenicSpotsMapper.updateScenicSpots(scenicSpots);
    }

    /**
     * 批量删除景区模块
     * 
     * @param scenicSpotids 需要删除的景区模块主键
     * @return 结果
     */
    @Override
    public int deleteScenicSpotsByScenicSpotids(Long[] scenicSpotids)
    {
        return scenicSpotsMapper.deleteScenicSpotsByScenicSpotids(scenicSpotids);
    }

    /**
     * 删除景区模块信息
     * 
     * @param scenicSpotid 景区模块主键
     * @return 结果
     */
    @Override
    public int deleteScenicSpotsByScenicSpotid(Long scenicSpotid)
    {
        return scenicSpotsMapper.deleteScenicSpotsByScenicSpotid(scenicSpotid);
    }
}
